package com.powernode.feign.sentinel;

import com.powernode.domain.Prod;
import com.powernode.feign.StoreFeignProd;
import com.powernode.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description: 门店业务模块调用商品业务模块feign接口熔断处理
 * @Author: Tong Ziyu
 * @Date: 2025/4/26 21:39
 */
// 实现StoreFeignProd接口,重写方法
@Component
@Slf4j
public class StoreFeignProdSentinel implements StoreFeignProd {
    /**
     * 重写方法,实际工作中,熔断不做处理,记录日志
     * @param ids
     * @return
     */
    @Override
    public Result<List<Prod>> getProdListByProdIds(List<Long> ids) {
        log.error("调用商品服务接口失败,ids:{}", ids);
        return null;
    }




}
